package com.acsior.hibernate.vo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.dac.impl.hibernate.vo.HibernateVO;

/**
 * CdReceiptTemp entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "cdReceiptTemp")
@GeneratorKey(tableName = "cdReceiptTemp")
public class CdReceiptTempVO extends HibernateVO {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -7637578956283491135L;

	@Column(name = "dateReg", nullable = false, length = 23)
	private Date dateReg;

	@Column(name = "IPAddress", nullable = false)
	private String ipaddress;

	@Column(name = "receiptName", nullable = false)
	private String receiptName;

	@Id
	@Column(name = "receiptTempID", unique = true, nullable = false)
	@GeneratedValue(strategy=GenerationType.AUTO)
	private long receiptTempId;

	@Column(name = "receiptText", nullable = false)
	private String receiptText;

	@Column(name = "status", nullable = false)
	private Integer status;

	// Constructors

	/** default constructor */
	public CdReceiptTempVO() {
		// и те така
	}

	
	/**
	 * @return стойността на dateReg
	 */
	public Date getDateReg() {
		return this.dateReg;
	}

	
	/**
	 * @param dateReg се залага в dateReg
	 */
	public void setDateReg(Date dateReg) {
		this.dateReg = dateReg;
	}

	
	/**
	 * @return стойността на ipaddress
	 */
	public String getIpaddress() {
		return this.ipaddress;
	}

	
	/**
	 * @param ipaddress се залага в ipaddress
	 */
	public void setIpaddress(String ipaddress) {
		this.ipaddress = ipaddress;
	}

	
	/**
	 * @return стойността на receiptName
	 */
	public String getReceiptName() {
		return this.receiptName;
	}

	
	/**
	 * @param receiptName се залага в receiptName
	 */
	public void setReceiptName(String receiptName) {
		this.receiptName = receiptName;
	}

	
	/**
	 * @return стойността на receiptTempId
	 */
	public long getReceiptTempId() {
		return this.receiptTempId;
	}

	
	/**
	 * @param receiptTempId се залага в receiptTempId
	 */
	public void setReceiptTempId(long receiptTempId) {
		this.receiptTempId = receiptTempId;
	}

	
	/**
	 * @return стойността на receiptText
	 */
	public String getReceiptText() {
		return this.receiptText;
	}

	
	/**
	 * @param receiptText се залага в receiptText
	 */
	public void setReceiptText(String receiptText) {
		this.receiptText = receiptText;
	}

	
	/**
	 * @return стойността на status
	 */
	public Integer getStatus() {
		return this.status;
	}

	
	/**
	 * @param status се залага в status
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * @see com.acsior.dac.data.Data#getId()
	 */
	@Override
	public Object getId() {
		return getReceiptTempId();
	}

	/**
	 * @see com.acsior.dac.impl.hibernate.vo.HibernateVO#setId(java.lang.Object)
	 */
	@Override
	public void setId(Object id) {
		// този е генериране
		setReceiptTempId(Long.class.cast(id));
	}


}